//
//  TWSquareCardCollectionViewCell.swift
//  EyepetizerImitative
//
//  Created by 田伟 on 2017/3/30.
//  Copyright © 2017年 个人. All rights reserved.
//

import UIKit

class TWSquareCardCollectionViewCell: UICollectionViewCell {

    @IBOutlet weak var bgImageView: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    
    var model : squareCardModel?{
        didSet {
            guard let model = model else {
                return
            }
            let str = model.image
            guard let str1 = str else {
                return
            }
            let url = URL(string: str1)
            bgImageView.sd_setImage(with: url)
            titleLabel.text = model.title
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
